package com.www;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class GUI_11 {
    public static void main(String[] args) {
        JFrame jf = new JFrame();
        jf.setLayout(new FlowLayout(FlowLayout.CENTER));
        jf.setBounds(400,300,400,200);
        JLabel label1 = new JLabel("账号：");
        JTextField text = new JTextField("请输入",22);
        jf.add(label1);
        jf.add(text);

        JLabel label2 = new JLabel("密码：");
        jf.add(label2);
        JPasswordField pwd =  new JPasswordField("",20);
        jf.add(pwd);

        jf.setVisible(true);
        jf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }
}
